import { StyleSheet, Text, View } from 'react-native'
import React from 'react'

export default function header() {
  return (
    <View style={styles.header}>
      <Text style={styles.title}>我的任务列表</Text>
    </View>
  )
}

const styles = StyleSheet.create({
  header: {
    height: 50,
    backgroundColor: 'coral',
    justifyContent: 'center'
  },
  title: {
    textAlign: 'center',
    color: '#FFFFFF',
    fontSize: 20,
    fontWeight: 'bold',
  }
})